<?php #coding: utf-8 æ ø å ?>

<div> <!-- _1_ -->
<?

$over = $this->sorterings_model->array_sort($over, 'navn');
$under = $this->sorterings_model->array_sort($under, 'navn');

echo "<p class='rubrik'><b>Zoom ud:</b>"; // _2_ _11_ _11_
if($er_jeg_admin == "ja"){
	echo anchor("core/vis/se/gruppe/".$stamdata['id']."/rediger_over", " ", "class='rediger'");
}

echo "</p>"; // _2_

foreach($over as $s)
{
	echo "<p class='ink'>"; // _3_
	echo anchor("core/vis/se/".$type."/".$s['over_id'], "- ".$s['navn']."<br>", "class='ink'");
	echo "</p>"; // _3_
}


$under_individer = array();

echo "<p class='rubrik'><b>Grupper:</b>"; // _4_ _5_ _5_
echo anchor("core/vis/se/gruppe/".$stamdata['id']."/alle_under/gruppe", " (se alle)", "class='ink'");
if($er_jeg_admin == "ja"){
	echo anchor("core/vis/se/gruppe/".$stamdata['id']."/rediger_under/gruppe", " ", "class='rediger'");
}
echo "</p>"; // _4_
foreach($under as $r)
{
	$under = new entitet();
	$under->find_type_kvant($r['under_id']);
	$type_kvant = $under->type_kvant;
	if((string) $type_kvant == "gruppe")
	{
		echo "<p class='ink'>"; // _6_
		echo anchor("core/vis/se/gruppe/".$r['under_id'], "- ".$r['navn']."<br>", "class='ink'");
		echo "</p>"; // _6_
	}
	elseif((string) $type_kvant == "individ" and !empty($r['navn']))
	{
		$under_individer[] = $r;
	}
}

/*
foreach($under_individer as $s)
{
	echo "<p id='individ' class='ink'>"; // _9_
			echo anchor("core/vis/se/individ/".$s['under_id'], "- ".$s['navn'], "class='ink' id='".$s['under_id']."'");
		echo " <a class='rubrik' href='".base_url()."core/vis/se/gruppe/".$stamdata['id']."/rediger_titel_i_gruppe/".$s['under_id']."'><span id='individ_".$s['under_id']."'></span></a>"; // _10_
	echo "</p>"; // _9_

}*/



?>
</div> <!-- _1_ -->
<!--<script>
$("#individ").live({
	mouseenter:	
	  function () {
		$('#tilfoej').remove();
		var id = $("a", this).attr("id");
		$('#individ_' + id).append("<span id='tilfoej'>tilføj titel</span>");
	  },
	mouseleave:
	  function (){
		$('#tilfoej').remove();
	  }
	}
);
</script>-->





